package com.json.entity;

public class MyCouponDetailBean {
	private String disid;
	private String shopid;
	private String title;
	private String catname;
	private String short_description;
	private String preview_image;
	private String rank;
	private String discount_lowest;
	private String cur_price;
	private String end_time;
	private String start_time;
	private String shop_description;
	private String x;
	private String y;

	public String getDisid() {
		return disid;
	}

	public void setDisid(String disid) {
		this.disid = disid;
	}

	public String getShopid() {
		return shopid;
	}

	public void setShopid(String shopid) {
		this.shopid = shopid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getCatname() {
		return catname;
	}

	public void setCatname(String catname) {
		this.catname = catname;
	}

	public String getShort_description() {
		return short_description;
	}

	public void setShort_description(String short_description) {
		this.short_description = short_description;
	}

	public String getPreview_image() {
		return preview_image;
	}

	public void setPreview_image(String preview_image) {
		this.preview_image = preview_image;
	}

	public String getRank() {
		return rank;
	}

	public void setRank(String rank) {
		this.rank = rank;
	}

	public String getDiscount_lowest() {
		return discount_lowest;
	}

	public void setDiscount_lowest(String discount_lowest) {
		this.discount_lowest = discount_lowest;
	}

	public String getCur_price() {
		return cur_price;
	}

	public void setCur_price(String cur_price) {
		this.cur_price = cur_price;
	}

	public String getEnd_time() {
		return end_time;
	}

	public void setEnd_time(String end_time) {
		this.end_time = end_time;
	}

	public String getStart_time() {
		return start_time;
	}

	public void setStart_time(String start_time) {
		this.start_time = start_time;
	}

	public String getShop_description() {
		return shop_description;
	}

	public void setShop_description(String shop_description) {
		this.shop_description = shop_description;
	}

	public String timeOff() {
		if (start_time != null && !"".equals(start_time) && end_time != null
				&& !"".equals(end_time)) {
			long s1 = Long.parseLong(start_time);
			long s2 = Long.parseLong(end_time);
			long d = (s2 - s1) / 1000 / 60;
			return String.format("%d天%d时%d分", d / 24 / 60, d / 60 / 60 % 24,
					d % 60);
		} else {
			return "";
		}

	}

	public void setX(String x) {
		this.x = x;
	}

	public void setY(String y) {
		this.y = y;
	}

	public String getX() {
		return x;
	}

	public String getY() {
		return y;
	}
}
